package com.sh.data.engine.application.model.dto.management;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Schema
public class UserDTO implements Serializable {

    @Schema(description = "用户id")//guid——>id
    private String id;

    @Schema(description = "姓名")
    private String userName;

    @Schema(description = "显示名")
    private String displayName;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "是否激活")
    private boolean active;

    @Schema(description = "是否删除")
    private boolean deleted;

    @Schema(description = "手机号")
    private String phoneNumber;

    @Schema(description = "所属组")
    private List<String> groups;

    @Schema(description = "角色ID")
    private int roleId;

    @Schema(description = "部门")
    private String dept;

    @Schema(description = "职位")
    private String title;

    @Schema(description = "启用状态 0未启用 1已启用")
    private Integer rowState;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "1是超管,0普通")
    private Integer isAuth;

    @Schema(description = "命令执行用户")
    private String cmdUser;

    @Schema(description = "用户token")
    private String userToken;

    @Schema(description = "创建时间")
    private Date created;

    @Schema(description = "上次修改时间")
    private Date lastModified;
}
